﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public class Eat
    {
        private int id;
        private int price;
        public string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        public int Id {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public int Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        }
     
        public void Printapple()
        {
            Console.WriteLine("苹果的Id:{0} 苹果的价格:{1} 产品名称:{2}",this.id,this.price,this.name);           
        }
        public static void applenumber(int id, string name, int price)
        { id = id;
            name = name;
            price = price;
        }
    }
}
